package cn.edu.scujcc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {


	@PostMapping
	public User newUser(@RequestBody User c) {
		User result = null;
		UserController service = null;
		result = service.newUser(c);
		return result;
	}
	
	@GetMapping("/id")
	public User User(@RequestBody User id) {
		User result = null;
		Object service;
		result = ((Object) service).Username(id);
		return result;
	}
	
}
